Adwaita: fine tune flat button styling
authorJakub Steiner <jimmac@gmail.com>
Thu, 7 Jan 2021 11:12:55 +0000 (12:12 +0100)
committerJakub Steiner <jimmac@gmail.com>
Thu, 7 Jan 2021 11:12:55 +0000 (12:12 +0100)
- enough contrast for hover and active, while noticably different in
  normal nad headerbar context (and both light and dark variants).

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3481

gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/_drawing.scss

index f5963fcba983c6cddaec2de4bbe4c611f7350c17..625744278c935ce043ce7f768128fe01dd401655 100644 (file)
@@ -1397,7 +1397,7 @@ windowcontrols {
     min-height: 0;
     &:hover {
       //special case hover colors inside a headerbar
-      @include button(undecorated-hover,$c:darken($headerbar_bg_color,10%));
+      @include button(undecorated-hover,$c:darken($headerbar_bg_color,6%));
     }
     &:active,
     &:checked { @include button(undecorated-active,$c:darken($headerbar_bg_color,10%)); }
index aca1fa8651b91dd0106f700ba9b6b565dc9e8ef4..87dcad9130afc50994edee4eadfb5c26ced0a842 100644 (file)
     text-shadow: none;
     @if $variant == 'light' {
       background-color: darken($c,14%);
-    }
-    @else {
-      background-color: darken($c,10%);
+    } @else {
+      background-color: darken($c,1%);
     }
   }
   @else if $t==undecorated-active {